<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>
<f:view>
     <style>.cols{
            vertical-align:top;
        }
    </style>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="css/estilomodelo.css" rel="stylesheet" type="text/css" />
        <title>LOGIN | Sistema Gestão de Suprimentos  - SGS 1.0</title>
    </head>
<body>
<div id="container">
<div id="banner">
</div><%--Banner--%>
<div  id="conteudoIndex" align="center">
    <br><br><br><br><br><br><br>
    <center>
    <h:form>
    <rich:panel style="width:400px; height:150px; background-color:#FFFFFF;">
        <f:facet name="header">
            <h:outputText value="Login SGS 1.0"></h:outputText>
        </f:facet>
        <h:panelGrid columns="2">
            <h:outputText  value="Login: "/>
            <h:inputText id="login" value="#{ObjFacadeUsuarioLogin.usuario.usuario}" required="true" size="20"/>
            <rich:message for="login"/>
            <br>
            <h:outputText value="Senha: "/>
            <h:inputSecret id="senha" value="#{ObjFacadeUsuarioLogin.usuario.senha}" required="true" size="20" />
            <rich:message for="senha"/>
            
                     
            <br>
            <a4j:commandButton value="Login" action="#{ObjFacadeUsuarioLogin.login}"/>
        </h:panelGrid>
      </rich:panel>
    </h:form>
  </center>
  </div><%--Conteúdo--%>
<div id="rodape">
</div><%--Rodapé--%>
</div><%--Container--%>
</body>
</html>

</f:view>
